package com.aifast.system.sys.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @Author fujian
 * @since 2022/3/28 17:27
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
public class SysRedis implements Serializable {
    private static final long serialVersionUID = -7065338268969083177L;

    private String type;
    private String key;
    private String expire;

    private Long elmNum;

    /*字符串类型值*/
    private String valStr;

    /*list类型值*/
    private String fromLeft;            // 是否从左边添加,仅list类型有效:1左,0右
    private String index;               // 当前操作的元素的索引，仅list类型有效
    private List<Object> valList;

    /*set类型值*/
    private Set<Object> valSet;

    /*hash类型*/
    private String hashKey;             // 仅hash类型有效
    private Map<Object, Object> valMap;

    /*zset数据类型 暂不支持*/

}
